package com.chengqj.util;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtil {
	public static String getYYYYMMDD(Date date){
		SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
		return format.format(date);
	} 
	public static String getYYYYMMDDHHMMSS(Date date){
		SimpleDateFormat format = new SimpleDateFormat("yyyyMMddhhmmss");
		return format.format(date);
	} 
}
